home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / wndwc20.zip / EX7.C < prev    next >
Text File  |  1989-03-06  |  842b  |  24 lines

  1. /*     EXAMPLE 7:  VIRTUALMODE window
  2.      ----------------------------------------------------------------------*/
  3.      #include <conio.h>
  4.      #include <dos.h>
  5.  
  6.      #include "wndwc20.h"
  7.  
  8.      void main()
  9.      {
  10.          qinit();
  11.          initwindow( LIGHTGRAY_BG, 1, 0 );
  12.          setwindowmodes( VIRTUALMODE );
  13.          makewindow( 5, 20, 15, 40, WHITE+BLUE_BG, CYAN+BLUE_BG,
  14.                      SINGLE_BORDER, WINDOW1 );
  15.          writetovirtual( WINDOW1 );
  16.          titlewindow( TOP, LEFT, YELLOW+BLUE_BG, " Virtual Window " );
  17.          wwrite( 1, 1, "Upper left corner" );
  18.          wwritec( 7, "This message is centered on the screen" );
  19.          vupdatewindow();        /* Update the complete window on the CRT. */
  20.          writetocrt();           /* Return to writing on the CRT. */
  21.          getch();
  22.      }
  23.  
  24.